let arr: (string | boolean)[] = ['hello', 'world', true]


function sum(...nums: number[]) {
  // IArguments 是一个内置的类型 用来定义伪数组
  let args: IArguments = arguments;
  console.log(args);

}
sum(12, 23, 67, 34)